/************************************************************************
Purpose: 	Master do-file for ETS Phone Survey Analysis			
*************************************************************************/

global CODE_DIR = "01Code/phone_survey"

global PHONE_DATA_IN = "00RawData/phone_survey"
global PHONE_DATA_OUT = "02DataPipeline/phone_survey"
global PHONE_TABS = "03Output/tables/"

global BASELINE_DATA_IN = "00RawData/baseline"
global BASELINE_DATA_OUT = "02DataPipeline/baseline"
global EMISSIONS_DATA_OUT = "02DataPipeline/emissions"
global TRADING_DATA_IN = "00RawData/trading"
global TRADING_DATA_OUT = "02DataPipeline/trading/intermediate"
global TRADING_DATA_CLEAN = "02DataPipeline/trading/cleaned"

** We use a conversion rate of USD 1 to INR 70, as of 2 Jan 2019, 
** Source: The Fed (https://www.federalreserve.gov/releases/h10/20190107/)
global USD2INR=70
grstyle init

**********************************************************************

** Clean phone survey
do "$CODE_DIR/edit_phone_survey_variables.do"

** Merge baseline survey
do "$CODE_DIR/prepare_merged_dataset.do"

** First Step structural
do "$CODE_DIR/prepare_structural_model_data_firststep.do"

* Table 5 and Table F2
do "$CODE_DIR/create_regression_tables_KW.do"

* Table F1
do "$CODE_DIR/create_cost_tables.do"
